﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
namespace PlantsVsZombies
{
    public abstract class LoadBar
    {
        #region Member Variables

        protected Texture2D Ground;
        protected Texture2D Grass;
        protected Texture2D Roll;


        protected float m_Progress;
        protected float m_RollRotation;
        protected Vector2 m_RollPosition;
        protected float m_RollScale;

        #endregion

        #region Properties

        public float Progress
        {
            get { return m_Progress; }
            set
            {
                if (value < 1)
                    m_Progress = value;
                //Else do stuff
            }
        }

        public float RollRotation
        {
            get { return m_RollRotation; }
            set { m_RollRotation = value; }
        }

        public Vector2 RollPosition
        {
            get { return m_RollPosition; }
            set { m_RollPosition = value; }
        }

        public Vector2 LoadBarPosition { get; set; }

        #endregion

        protected LoadBar(Vector2 paramLoadBarPosition)
        {
            LoadBarPosition = paramLoadBarPosition;
            m_Progress = 0;
            m_RollRotation = 0;
            m_RollPosition = new Vector2(40 + LoadBarPosition.X, 50 + LoadBarPosition.Y);
        }


    }
}
